# 指定 CMake 最低版本
cmake_minimum_required(VERSION 3.10)

# 设置 C++17
set(CMAKE_CXX_STANDARD 17)

# 添加 C++ 编译参数
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")

# 生成服务器 server 可执行程序
add_executable(serverDemo server.cpp)

# 生成客户端 client 可执行程序
add_executable(clientDemo client.cpp)

add_executable(fstream fstream.cpp)
add_executable(wstring wstring.cpp)


# 生成客户端 client 可执行程序
include_directories(../messageCenter/include)
link_libraries(${PROJECT_BINARY_DIR}/libs)
add_executable(msgDemo msgCenterTest.cpp)
target_link_libraries(msgDemo messageCenter)

add_executable(msgDemo2 ./msgTest2/msgTest2.cpp)
target_link_libraries(msgDemo2 messageCenter)
